package com.zhongli.devplatform.po.view;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.zhongli.devplatform.enums.SexType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author  WuXiCheng
 * @date  2020/7/31 16:14
 * @version 1.0
 */
@Data
@TableName(value = "v_user")
@ApiModel
public class ViewUserPO {

    @TableField(value = "id")
    @ApiModelProperty(value = "id")
    private Integer id;

    /**
     * 用户表id
     */
    @TableField(value = "user_id")
    @ApiModelProperty(value = "用户表id")
    private Integer userId;

    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 昵称
     */
    @ApiModelProperty(value = "昵称")
    @TableField(value = "nick_name")
    private String nickName;

    /**
     * 年龄
     */
    @ApiModelProperty(value = "年龄")
    @TableField(value = "age")
    private Integer age;

    /**
     * 性别：0保密，1男，2女
     */
    @ApiModelProperty(value = "性别：0保密，1男，2女")
    @TableField(value = "sex")
    private SexType sex;

    /**
     * 简介
     */
    @ApiModelProperty(value = "简介")
    @TableField(value = "introduce")
    private String introduce;

    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 用户关注的人数
     */
    @ApiModelProperty(value = "用户关注的人数")
    @TableField(value = "att_count")
    private Integer attCount;

    /**
     * 用户粉丝数
     */
    @ApiModelProperty(value = "用户粉丝数")
    @TableField(value = "fans_count")
    private Integer fansCount;

    /**
     * 登录账号
     */
    @ApiModelProperty(value = "登录账号")
    @TableField(value = "account_num")
    private String accountNum;

    /**
     * 登陆密码
     */
    @TableField(value = "password")
    @JsonIgnore
    private String password;

    /**
     * 是否启用：0不启用，1启用
     */
    @ApiModelProperty(value = "是否启用：0不启用，1启用")
    @TableField(value = "is_enable")
    private Boolean isEnable;

    /**
     * 是否删除：0未删除，1已删除
     */
    @ApiModelProperty(value = "是否删除：0未删除，1已删除")
    @TableField(value = "is_delete")
    private Boolean isDelete;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    @TableField(value = "remark")
    private String remark;

    /**
     * 展示用户唯一的id
     */
    @ApiModelProperty(value = "展示用户唯一的id")
    @TableField(value = "sole_id")
    private String soleId;

    /**
     * 用户类别：0学生，1老师，2家长
     */
    @ApiModelProperty(value = "用户类别：0学生，1老师，2家长")
    @TableField(value = "category")
    private Integer category;

    /**
     * 学生对应班级
     */
    @TableField(value = "clazz_id")
    private Integer clazzId;

    /**
     * 老师对应科目
     */
    @ApiModelProperty(value = "老师对应科目")
    private String teacherType;

    //头像
    @ApiModelProperty(value = "头像")
    @TableField(value = "head_img_url")
    private String headImgUrl;

    @TableField(exist = false)
    private Boolean whetherToFollow;

}
